package com.design.pattern.decorator.domain;

import com.design.pattern.decorator.abstracts.Decrorator;
import com.design.pattern.decorator.service.Drink;

public class Egg extends Decrorator {
    public Egg(Drink drink) {
        super(drink);
    }

    @Override
    public double money() {
        return super.money()+2.6;
    }

    @Override
    public String desc() {
        return super.desc()+"+鸡蛋";
    }
}
